package com.jf.yytgd.entity.dto.diary;

import com.jf.yytgd.validation.constrain.Title;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * Created with IntelliJ IDEA
 * Description: 日记发布DTO
 * User:22954
 * Date:2025-02-06
 * Time:21:27
 */
@Data
public class DiaryPublishDTO {
    @Title
    private String title;
    @NotNull
    @Min(1)
    private Integer userId;
    @NotBlank
    private String text;
}
